#include <iostream>
#include <time.h>
#include <stdio.h>
#include <conio.h>
#include <Windows.h>
using namespace std;

int main()
{
	int gio = 0, phut = 0, giay = 0;

	do
	{
		system("cls");// xoa man hinh trong c++
		/*printf("*******************\n");
		printf("*                 *\n");
		printf("*	%02d:%02d:%02d  *\n",gio,phut,giay);
		printf("*                 *\n");
		printf("*******************\n");*/
		cout<<"**************************\n";
		cout<<"*                        *\n";
		cout<<"*  "<<gio<<":"<<phut<<":"<<giay<<"\n";
		cout<<"*                        *\n";
		cout<<"**************************\n";
		Sleep(1000);
		giay++;
		if (giay >= 60)
		{
			giay = 0;
			phut++;
			if (phut >= 60)
			{
				phut = 0 ;
				gio++;
				if (gio >= 24)
					gio = 0;
			}
		}
	}
	while (!kbhit());//kbhit nhan phim bat ky thi dung` lai chuong trinh
	system("pause");
}